<?php

use Nette\Database as ND;

/**
 * @author Winbeek
 */
final class View extends ND\Table\Selection
{
	public function __construct($view, ND\Connection $connection)
	{
		parent::__construct('vw_' . $view, $connection);

		if ($this->primary === NULL)
			$this->primary = 'id';
		if ($this->delimitedPrimary === "``")
			$this->delimitedPrimary = '`id`';
	}
}
